#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2021/11/28 11:50
    Desc  :
--------------------------------------
"""
import xlrd
from django.core import validators
from django.utils.deconstruct import deconstructible


@deconstructible
class PhoneValidate(validators.RegexValidator):
    regex = r'1[345789]\d{9}'

    message = '手机号码格式不正确',

    flags = 0

validate_phone = PhoneValidate()